package com.biejiaogroup.librarymanager.mapper;

import com.biejiaogroup.librarymanager.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.Vector;

@Mapper
public interface UserMapper {
    /**
     * @param userName
     * @return: com.biejiaogroup.librarymanager.entity.User
     * @Description: 根据用户名查询用户
     * @Author: JesseChan
     * @Date: 2022/5/5
     */
    public User getUserByName(String userName);

    /**
     * @param
     * @return: java.util.Vector<com.biejiaogroup.librarymanager.entity.User>
     * @Description: 查询所有用户
     * @Author: JesseChan
     * @Date: 2022/5/13
     */
    public Vector<User> getAllUser();

    /**
     * @param userName
     * @return: java.util.Vector<com.biejiaogroup.librarymanager.entity.User>
     * @Description: 根据用户名模糊搜索
     * @Author: JesseChan
     * @Date: 2022/5/13
     */
    public Vector<User> getAllUserByName(String userName);

    /**
     * @param user
     * @return: void
     * @Description: 用户注册
     */
    public void register(User user);


}
